<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>来抓我呀</title>
    <script>
        let arr = ["来抓我呀", "抓不到我吧", "急不急", "我又溜了", "你好菜啊", "你不行呀"]
        let index = 1;

        function f1() {
            let btn = document.getElementById("btn");
            btn.style.left = Math.random() * 1800 + "px";
            btn.style.top = Math.random() * 850 + "px";
            btn.value = arr[index++ % arr.length];
        }
    </script>
</head>
<body>
<!--
    当鼠标悬停在按钮上的时候,按钮会随机变换到页面的任意为止
    且按钮的内容会发生改变
    依次改为:来抓我呀、抓不到我吧、急不急、我又溜了、你好菜啊、你不行呀
-->
<input type="button" value="来抓我呀" id="btn" onmouseover="f1()" style="position: relative;left: 100px;top: 100px">
</body>
</html>